package day09;

/*
 * Author: JacksonCoder
 * FileName: CollectionsExample
 * Version: 1.0.0
 * Date: 2025/4/15
 */

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CollectionsExample {

    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1,6,2,8,4);
        Collections.sort(list); // 排序
        System.out.println(list); //

        Collections.reverse(list); // 反转
        System.out.println(list); //

    }

}
